package com.wanmait.community.service;

import com.wanmait.community.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wanmait.community.util.AjaxResult;

import java.util.List;

public interface AdminService extends IService<Admin>{
    List<Admin> findAll();

    AjaxResult login (Admin admin);

    Admin findById(Integer id);

    Admin selectAdminByPhone(String phone);

    Admin selectAdminByInNum(String inNum);

    void insertAdmin(Admin admin,Integer roleId);

    void deleteAdminById(Integer id);
}

